﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Tushuguanli
    {
        public string UserName { get; set; }
        public int PassWord { get; set; }
        public string Department { get; set; }
        public string Position { get; set; }
        public string BookName { get; set; }
        public int Isbn { get; set; }
        public int BookPrice { get; set; }
        public string Author { get; set; }
        public string Publisher { get; set; }
        public string Address { get; set; }
        public string Contact { get; set; }
        public void PrintMsg()
        {
            Console.WriteLine("用户名为:" + UserName);
            Console.WriteLine("密码为:" + PassWord);
            Console.WriteLine("部门为:" + Department);
            Console.WriteLine("用户角色为:" + Position);
            Console.WriteLine("书名为:" + BookName);
            Console.WriteLine("编码为:" + Isbn);
            Console.WriteLine("书价为:" + BookPrice);
            Console.WriteLine("作者为:" + Author);
            Console.WriteLine("出版社为:" + Publisher);
            Console.WriteLine("出版社地址为:" + Address);
            Console.WriteLine("出版社联系人为为:" + Contact);
        }
//        private string userName;
//        private int passWord;
//        private string department;
//        private string position;
//        private string bookName;
//        private int isbn;
//        private int bookPrice;
//        private string author;
//        private string publisher;
//        private string address;
//        private string contact;

//        public string UserName
//        {
//            get { return this.userName; }
//            set { this.userName = value; }
//        }
//        public int PassWord
//        {
//            get { return this.passWord; }
//            set { this.passWord = value; }
//        }
//        public string Department;
//        {
//            get { return this.department; }
//            set { this.department = value; }
//        }
//        public string Position
//{
//            get { return this.position; }
//            set { this.position = value; }
//        }
//        public string BookName
//{
//            get { return this.bookName; }
//            set { this.bookName = value; }
//        }
//        public int Isbn
//{
//            get { return this.isbn; }
//            set { this.isbn = value; }
//        }
//        public string BookPrice
//{
//            get { return this.bookPrice; }
//            set { this.bookPrice = value; }
//        }
//        public string Author
//{
//            get { return this.author; }
//            set { this.author = value; }
//        }
//        public string Publisher
//{
//            get { return this.publisher; }
//            set { this.publisher = value; }
//        }
//        public string Address
//{
//            get { return this.address; }
//            set { this.address = value; }
//        }
//        public string Contact
//{
//            get { return this.contact; }
//            set { this.contact = value; }
    

}
}
